﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="DemoNYTimes.App"
             xmlns:nytvc="clr-namespace:NYTimes.ValueConverters;assembly=NYTimesSilverlightKit"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             >
    <Application.Resources>
        <sys:String x:Key="NYTBestSellersKey">2a6c31d6b6ce63861125d167c8dc64b3:19:57351476</sys:String>
        <sys:String x:Key="NYTArticlesKey">37b092758c0906932de7dbe7160e6d13:2:57351476</sys:String>
        <sys:String x:Key="NYTTagsKey">c00b75926985a9b1395c871c1a641f74:14:57351476</sys:String>
        <sys:String x:Key="NYTMovieReviewsKey">63b54eadfaebad00123f8b27a5090b49:17:57351476</sys:String>
        <sys:String x:Key="NYTNewswireKey">b92eac2a3c7ad403d32423f9ecff9e07:11:57351476</sys:String>
        <sys:String x:Key="NYTCommunityKey">813ad46f5104333600149585f06dd2e3:18:57351476</sys:String>
        <sys:String x:Key="NYTTimesPeopleKey">464b3f1d1b66832d77e05394ba77165b:12:57351476</sys:String>
        <sys:String x:Key="NYTCongressKey">c0078056d7d6a02cb44618287a9b2ebc:7:57351476</sys:String>
        <sys:String x:Key="NYTCampaignFinanceKey">e00d15e69ab6b0c045103b503cab19a5:19:57351476</sys:String>
        <sys:Int32 x:Key="NYTBestsellersQPS">8</sys:Int32>
        
        <DataTemplate x:Key="CommentTemplate">
        	<Grid>
                <Grid.Resources>
                    <nytvc:DateTimeConverter x:Key="DateTimeConverterDS"/>
                    <nytvc:HtmlTextConverter x:Key="HtmlTextConverter"/>
                </Grid.Resources>
        		<Grid.RowDefinitions>
        			<RowDefinition Height="Auto"/>
        			<RowDefinition/>
        		</Grid.RowDefinitions>
        		<StackPanel Height="Auto" VerticalAlignment="Top" Orientation="Horizontal">
        			<TextBlock Text="{Binding Mode=OneWay, Path=DisplayName}" TextWrapping="NoWrap" FontWeight="Bold" FontFamily="Times New Roman" FontSize="14"/>
        			<TextBlock Text=" (" TextWrapping="NoWrap" Margin="4,0,0,0" FontWeight="Bold" FontFamily="Times New Roman" FontSize="14"/>
        			<TextBlock Text="{Binding Mode=OneWay, Path=Location}" TextWrapping="NoWrap" FontWeight="Bold" FontFamily="Times New Roman" FontSize="14"/>
        			<TextBlock Text=")" TextWrapping="NoWrap" FontWeight="Bold" FontFamily="Times New Roman" FontSize="14"/>
        			<HyperlinkButton Content="Article" NavigateUri="{Binding Mode=OneWay, Path=ArticleUrl}" Margin="2,2,2,2" TargetName="_blank" VerticalAlignment="Center"/>
        		</StackPanel>
        		<TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="{Binding Body, Mode=OneWay, Converter={StaticResource HtmlTextConverter}}" TextWrapping="Wrap" Grid.Row="1" FontFamily="Times New Roman" FontSize="14" x:Name="Body" Margin="2,0,2,0"/>
        		<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=ApproveDate, Converter={StaticResource DateTimeConverterDS}, ConverterParameter=d}" TextWrapping="Wrap"/>
        	</Grid>
        </DataTemplate>
    </Application.Resources>
</Application>
